
const Debounce = {
	bind: (el, binding, vnode, oldVnode) => {
		let timer;
		el.addEventListener("click", () => {
			if (timer) {
				clearTimeout(timer);
			}
			timer = setTimeout(() => {
				binding.value();
			}, 1000);
		});
	}
};

export default Debounce;
